package com.yfqy.admin.service.impl;

import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;
import com.yfqy.admin.domain.entity.ProductReview;
import com.yfqy.admin.domain.mapper.ProductReviewMapper;
import com.yfqy.admin.service.ProductReviewService;

@Service
public class ProductReviewServiceImpl implements ProductReviewService {

    @Resource
    private ProductReviewMapper productReviewMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return productReviewMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ProductReview record) {
        return productReviewMapper.insert(record);
    }

    @Override
    public int insertSelective(ProductReview record) {
        return productReviewMapper.insertSelective(record);
    }

    @Override
    public ProductReview selectByPrimaryKey(Long id) {
        return productReviewMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ProductReview record) {
        return productReviewMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProductReview record) {
        return productReviewMapper.updateByPrimaryKey(record);
    }

}
